import request from '@/utils/request'

// 查询学生合格证明信息列表
export function listPassCertificate(examPassCertificateId) {
  return request({
    url: '/student/passCertificate/list/' + examPassCertificateId,
    method: 'get',
  })
}

// 查询学生合格证明信息详细
export function getPassCertificate(id) {
  return request({
    url: '/student/passCertificate/' + id,
    method: 'get'
  })
}

// 新增学生合格证明信息
export function addPassCertificate(data) {
  return request({
    url: '/student/passCertificate',
    method: 'post',
    data: data
  })
}

// 修改学生合格证明信息
export function updatePassCertificate(data) {
  return request({
    url: '/student/passCertificate',
    method: 'put',
    data: data
  })
}

// 删除学生合格证明信息
export function delPassCertificate(id) {
  return request({
    url: '/student/passCertificate/' + id,
    method: 'delete'
  })
}

// 选中提交的学生信息
export function selectStudentExamCertificate(id) {
  return request({
    url: '/student/passCertificate/selectStudentExamCertificate/' + id,
    method: 'get'
  })
}